Computer Configuration > Administrative Templates > Firefox > DNS Over HTTPS
Both
HKLM\Software\Policies\Mozilla\Firefox\DNSOverHTTPS
If this policy is enabled, the specified domains are excluded from DNS over HTTPS. If this policy is disabled or not configured, no domains are excluded from DNS over HTTPS.